#include <stdio.h>
int main(int argc,const char*argv[])
{
	if(argc!=3){printf("文件源缺失\n");return -1;}
	FILE*p1=NULL,*p2=NULL;
	if((p1=fopen(argv[1],"r"))==NULL||(p2=fopen(argv[2],"w"))==NULL){perror("打开失败：");return -1;}
	char ret[2]="";
	while(fgets(ret,2,p1)!=NULL)
	{
		if(fputs(ret,p2)==EOF){perror("拷贝失败：");return -1;}
		printf("%c",ret[0]);
	}
	fclose(p1);
	fclose(p2);
	printf("拷贝完成\n");
	return 0;
}
